<?php
class HelpController extends Controller{
	public function actionIndex(){
		$this->render('index');
	}
	public function actionVideo(){
		$this->render('video');
	}
	public function actionFeed(){
		$model = new Feed;
		if(isset($_POST['Feed'])){
			$model->attributes = $_POST['Feed'];
			$model->feed_time = time();
			if($model->validate() && $model->save()){
				Yii::app()->user->setFlash('submitFeedComment','谢谢您的反馈意见，我们将妥善考虑您的请求！');
			}
		}
		//$model->setAttribute('feed_type','1'); 
		$this->render('feedback',array('model'=>$model));
	}
}